<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragment_base :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>500</title>
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/common.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="../../static/js/custom.js"></script>
    <script src="../../static/js/semantic.min.js"></script>
</head>

<body>
<!--导航-->
<nav th:replace="fragment_base :: menu(-1)" class="ui inverted attached segment head-tab-padding">
    <div class="ui container">
        <!--stackable 表示可堆叠，自适应-->
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">博客</h2>
            <a class="menu-item item mobile-hide" href="#"><i class="teal code icon"></i>首页</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal idea icon"></i>分类</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal tags icon"></i>标签</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal time icon"></i>归档</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal info icon"></i>关于我</a>
            <div class="menu-item right item mobile-hide">
                <div class="ui icon transparent inverted input">
                    <input placeholder="搜索..." type="text">
                    <i class="teal search icon"></i>
                </div>
            </div>
        </div>
    </div>
    <!--菜单按钮-->
    <a id="menu-toggle" class=" ui black icon button bar-position mobile-show" href="#">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间内容-->
<div class="center-padding">
    <div class="ui container">
        <div class="ui error message stackable"
             style="margin-top: 10%; padding-top: 5%;padding-bottom: 5%">
            <div class="ui grid">
                <div class="eleven wide column">
                    <h2 class="ui header">500</h2>
                    <h3 th:text="'Failed Request URL : ' + ${url?:null}"   style="word-wrap:break-word; !important;"></h3>
                </div>
                <div class="five wide column">
                    <img class="ui rounded  image view-qr-width"
                         src="../../static/img/me_wechat.png" alt=""
                         th:src="@{/img/me_wechat.png}">
                </div>
            </div>

            <!--堆栈信息-->
            <ul th:text="${exception?.message}"></ul>
            <ul th:each="stackTrace,stat: ${exception?.stackTrace}" th:if="${stat?.count<=6}">
                <li class="item" th:text="${stackTrace}"
                    style="word-wrap:break-word; !important;"></li>
            </ul>

        </div>
    </div>
</div>

</body>
</html>